From 456ad9786b42a269573c7e641e144812b0ae5127 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 4 Jul 2005 17:33:33 +0000 Subject: [PATCH] Add extention to s_and_t. Tweak -^2 output to include extension info for xcsv formats. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1273 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/style/s_and_t.style | 2 ++ gpsbabel/vecs.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gpsbabel/style/s_and_t.style b/gpsbabel/style/s_and_t.style index 391a96774..a9c685dd5 100644 --- a/gpsbabel/style/s_and_t.style +++ b/gpsbabel/style/s_and_t.style @@ -13,6 +13,8 @@ # DESCRIPTION Microsoft Streets and Trips 2002-2005 +EXTENSION txt + # # FILE LAYOUT DEFINITIIONS: diff --git a/gpsbabel/vecs.c b/gpsbabel/vecs.c index cbd7bf9b5..831b00ebd 100644 --- a/gpsbabel/vecs.c +++ b/gpsbabel/vecs.c @@ -644,6 +644,7 @@ sort_and_unify_vecs(int *ctp) svp[i] = xcalloc(1, sizeof **svp); svp[i]->name = svec->name; svp[i]->vec = xmalloc(sizeof(*svp[i]->vec)); + svp[i]->extension = xcsv_file.extension; *svp[i]->vec = *vec_list[0].vec; /* Interits xcsv opts */ /* Reset file type to inherit ff_type from xcsv for everything * except the xcsv format itself, which we leave as "internal" -- 2.30.2